home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / rlpr-1.000 / rlpr-1 / rlpr-1.13 / rlpr-dbfile.h < prev    next >
C/C++ Source or Header  |  1996-06-30  |  1KB  |  28 lines

  1. /* filename: rlpr-dbfile.h
  2.  * project: rlpr
  3.  * author: meem  --  meem@sherilyn.wustl.edu
  4.  * version: $Id: rlpr-dbfile.h,v 1.3 1996/04/26 23:35:24 meem Exp $
  5.  * contents: prototypes and #defines for rlpr database file manipulation
  6.  *
  7.  * Time-stamp: <1996/04/26 18:35 -- meem@sherilyn.wustl.edu>
  8.  */
  9.  
  10. #ifndef RLPR_DBFILE_H
  11. #define RLPR_DBFILE_H
  12.  
  13. /* database properties */
  14. #define DBNAME       ".rlprrc"            /* name of the database file */
  15. #define DB_LINE_LEN  255                  /* max length of a line in the database file */
  16.  
  17. #define FINDQ        1
  18. #define FINDHOST     2
  19.  
  20. /* function prototypes */
  21. char * getqfromhost(char *printhost);     /* finds a printqueue name from a host */
  22. char * gethostfromq(char *queue);         /* finds a host from a printqueue name */
  23. void   opendbfile(void);                  /* opens the DBNAME file */
  24. void   closedbfile(void);                 /* closes the DBNAME file */
  25. char * db_search(char *sstr, int TYPE);   /* main search engine */
  26.  
  27. #endif /* RLPR_DBFILE_H */
  28.